package business.other.impl;

import business.other.ProductionSafetyAccidentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.w3c.dom.ProcessingInstruction;
import other.domain.ProductionSafetyAccidents;
import other.domain.ProductionSafetyAccidentsCriteria;
import other.mapper.ProductionSafetyAccidentsMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/17.
 */
@Service(value = "productionAccidentsService")
public class ProductionSafetyAccidentsServiceImpl implements ProductionSafetyAccidentsService {

    @Autowired
    ProductionSafetyAccidentsMapper productionSafetyAccidentsMapper;

    @Override
    public List<ProductionSafetyAccidents> getProductionSafetyAccidents() {
        ProductionSafetyAccidentsCriteria criteria = new ProductionSafetyAccidentsCriteria();
        criteria.createCriteria().getAllCriteria();
        return productionSafetyAccidentsMapper.selectByExample(criteria);
    }
}
